# -*- encoding: utf-8 -*-
# 11:47 2021/12/06
# Kay

import string
import random


def get_random_string(length):
    """
    获取一个随机数
    :param length:      位
    :return:
    """
    return ''.join(random.sample(string.ascii_letters + string.digits, length))
